package com.sc.common.shiro.token;

import org.apache.shiro.authc.UsernamePasswordToken;

/*
    readme:
    新令牌，加入loginType属性，供给验证器判断登录类型
 */
public class PersonalUsernamePasswordToken extends UsernamePasswordToken {
    private String loginType;

    public PersonalUsernamePasswordToken(String username, String password, String loginType) {
        super(username, password);
        this.loginType = loginType;
    }

    public void setLoginType(String loginType) {
        this.loginType = loginType;
    }

    public String getLoginType() {
        return loginType;
    }
}
